<template>
  <div>
    <div class='stage' :style="`background-color:${stage.color}`">
      <img class='left' :src="require(`@/assets/${stage.img}.png`)" alt=''>
      <div class='right'>
        <h3>{{ stage.title }}</h3>
        <p>{{ stage.text }}</p>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'projectStage',
    components: {

    },
    props:{
      stage:{
        type:Object,
        default: () => {}
      }
    },
    data() {
      return {

      }
    },
    methods: {

    }
  }
</script>
<style lang="less" scoped>
.stage{
  height: 68px;
  overflow: hidden;
  padding:0 15px;
  .left{
    display: block;
    float:left;
    height:36px;
    margin-top:16px
  }
  .right{
    float:right;
    h3,p{
      color:#fff;
      margin:0;
      height:34px;
      line-height: 34px;
    }
  }
}
</style>